import React, { Suspense } from "react";
import { createRoot } from "react-dom/client";
import { App } from "./App";
import { rootStore } from "../store";
const root = createRoot(document.getElementById("root"));
const store = new rootStore();
function Variants() {
  return <div>加载前的loading</div>;
}
const Container = () => {
  return (
    <Suspense fallback={<Variants></Variants>}>
      <App rootStore={store} />
    </Suspense>
  );
};
root.render(<Container />);
